<?php

return [
    'menu' => [
        'shop' => [
            'name' => '客户订单管理',
            'ico' => '&#xe726;',
            'sub' => [
                'shoplist' => ['name' => '订单管理', 'uri' => '/shop/shoplist', 'show' => true, 'method' => 'get'],  //index 方法名
                'shoplist_edit' => ['name' => '添加、编辑订单', 'uri' => '/shop/shoplist_edit', 'show' => false, 'method' => 'get|post'],
                'shoplist_del' => ['name' => '删除订单', 'uri' => '/shop/shoplist_del', 'show' => false, 'method' => 'get|post'],
                'user' => ['name' => '用户管理', 'uri' => '/shop/user', 'show' => true, 'method' => 'get'],  //index 方法名
                'user_edit' => ['name' => '添加、编辑客户', 'uri' => '/shop/user_edit', 'show' => false, 'method' => 'get|post'],
                'user_del' => ['name' => '删除客户', 'uri' => '/shop/user_del', 'show' => false, 'method' => 'get|post'],
            ],
            'show' => true,
        ],
        'firm' => [
            'name' => '商行进出货管理',
            'ico' => '&#xe726;',
            'sub' => [
                'firms' => ['name' => '进出货明细', 'uri' => '/firm/firms', 'show' => true, 'method' => 'get'],  //index 方法名
                'firms_edit' => ['name' => '添加、编辑订单', 'uri' => '/firm/firms_edit', 'show' => false, 'method' => 'get|post'],
                'suser' => ['name' => '用户管理', 'uri' => '/firm/suser', 'show' => true, 'method' => 'get'],  //index 方法名
                'suser_edit' => ['name' => '添加、编辑客户', 'uri' => '/firm/suser_edit', 'show' => false, 'method' => 'get|post'],
                'suser_del' => ['name' => '删除客户', 'uri' => '/firm/suser_del', 'show' => false, 'method' => 'get|post'],
                'user' => ['name' => '商行管理', 'uri' => '/firm/user', 'show' => true, 'method' => 'get'],  //index 方法名
                'user_edit' => ['name' => '添加、编辑商行', 'uri' => '/firm/user_edit', 'show' => false, 'method' => 'get|post'],
                'user_del' => ['name' => '删除商行', 'uri' => '/firm/user_del', 'show' => false, 'method' => 'get|post'],
            ],
            'show' => true,
        ],
        'shose' => [
            'name' => '仓库出入货管理',
            'ico' => '&#xe726;',
            'sub' => [
                'list' => ['name' => '仓库出入货', 'uri' => '/shose/list', 'show' => true, 'method' => 'get'],  //index 方法名
                'list_edit' => ['name' => '添加、编辑订单', 'uri' => '/shose/list_edit', 'show' => false, 'method' => 'get|post'],
            ],
            'show' => true,
        ],
        'admin' => [  /// controller名
            'name' => '系统管理',
            'ico' => '&#xe726;',
            'sub' => [
                'index' => ['name' => '管理员列表', 'uri' => '/admin/index', 'show' => true, 'method' => 'get'],  //index 方法名
                'input' => ['name' => '添加管理员', 'uri' => '/admin/input', 'show' => false, 'method' => 'get|post'],
                'del' => ['name' => '管理员删除', 'uri' => '/admin/del', 'show' => false, 'method' => 'get|post'],
                'login_log' => ['name' => '登录日志', 'uri' => '/admin/login_log', 'show' => true, 'method' => 'get']
            ],
            'show' => true,
        ],

    ]
];
